From 1b79179e637294d940636b438d292e943904f628 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 15 Feb 2010 17:49:14 +0000 Subject: [PATCH] If the 'sched' parameter is unrecognized, choose the first scheduler Signed-off-by: George Dunlap --- xen/common/schedule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 600baeac05..3b4be55d79 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -929,7 +929,10 @@ void __init scheduler_init(void) } if ( schedulers[i] == NULL ) + { printk("Could not find scheduler: %s\n", opt_sched); + ops = *schedulers[0]; + } printk("Using scheduler: %s (%s)\n", ops.name, ops.opt_name); SCHED_OP(init); -- 2.30.2